
echo off

set NSUtil_path=.\NSUtil\NSUtil.exe

set output_file=MergeFirmware

set masterboot_bin=Image\MasterBoot
set bootsetting_bin=Image\bootsetting

set public_key_file=.\keys\public_key.bin
set output_bootsetting=.\Image\bootsetting.bin

set app1_bin=Image\APP1
set bank1_bin=.\Image\APP1.bin
set bank1_start_address=0x1004000
set bank1_version=0x00000001
set bank1_activation=yes



set image_update_bin=Image\ImageUpdate

        %NSUtil_path% pack mergebin %output_file%                    ^
								 --masterboot %masterboot_bin%       ^
								 --bootsetting %bootsetting_bin%     ^
								 --app1 %app1_bin%             	          ^
								 --imageupdate %image_update_bin%	

PAUSE
EXIT